Platform Explorer / Nuxeo Platform 2021.7

Component org.nuxeo.ecm.core.orphanVersionsCleanup

Resolution Order

87
The resolution order represents the order in which this component has been resolved by the Nuxeo Runtime framework.
You can influence this order by adding "require" tags in your component declaration, to make sure it is resolved after another component.

Contributions

XML Source

<?xml version="1.0"?>
<component name="org.nuxeo.ecm.core.orphanVersionsCleanup">

  <extension target="org.nuxeo.ecm.core.scheduler.SchedulerService" point="schedule">
    <schedule id="orphanVersionsCleanup">
      <!-- cleanup every day at 1:30 AM -->
      <cronExpression>0 30 1 * * ?</cronExpression>
      <event>orphanVersionsCleanup</event>
    </schedule>
  </extension>

  <extension target="org.nuxeo.ecm.core.event.EventServiceComponent" point="listener">
    <listener name="orphanVersionsCleanup" async="true" postCommit="true" enabled="false"
      class="org.nuxeo.ecm.core.versioning.OrphanVersionCleanupListener">
      <event>orphanVersionsCleanup</event>
    </listener>
  </extension>

  <extension target="org.nuxeo.runtime.ConfigurationService" point="configuration">
    <documentation>
      Configuration property for the maximum number of orphan versions to delete in one transaction.
      This is only meaningful if the OrphanVersionCleanupListener is active.
    </documentation>
    <property name="org.nuxeo.orphanVersionsCleanup.commitSize">1000</property>
  </extension>

</component>